<?php
namespace app\admin\validate;

use think\Validate;

class Category extends Validate
{
    protected $rule = [
        'title'  	=>  'require',
        'iden'  	=>  'require',
    ];

    protected $message  =   [
        'title.require' 	=> -1, 
        'iden.require' 	=> -2, 
    ];
    protected $scene = [
        'add'   =>  ['iden'],
        'edit'  =>  ['iden'],
    ];

}